* {
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #a0cfff;
    height: 100vh;
    margin: 0;
}

/* 主面板 */
#main-wrapper {
    background-color: rgba(244, 248, 247, 0.564);
    z-index: 0;
    transform: scaleY(85%);
}

/* 棋盘 */
#chessboard {
    width: 842px;
    height: 860px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    z-index: -1;
}

/* 菜单面板 */
#menu {
    /* visibility: hidden; */
    position: fixed;
    right: 80px;
    bottom: 200px;
    width: 120px;
    height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    border-radius: 4px;
    border: 1px solid #e4e7ed;
    background-color: #d0e6fa;
    overflow: hidden;
    color: #303133;
    transition: .3s;
    transform: scale(1.5);
}

/* 菜单项 */
.menu-btn {
    display: block;
    justify-content: center;
    align-items: center;
    line-height: 1;
    height: 32px;
    white-space: nowrap;
    cursor: pointer;
    color: #409eff;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: .1s;
    font-weight: 500;
    user-select: none;
    background-color: #ecf5ff;
    border: 1px solid #dcdfe6;
    border-color: #a0cfff;
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 4px;
}

.menu-btn__disabled {
    color: #a0cfff !important;
    background-color: #ecf5ff !important;
    border-color: #d9ecff !important;
}

/* 当前玩家提示 */
#tip {
    position: fixed;
    left: 100px;
    top: 50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 当前玩家提示文字 */
#tip span {
    color: #000;
    font-weight: bold;
    font-size: 26px;
}

/* 菜单按钮 */
.menu-btn:hover {
    color: #ffffff;
    border-color: #409eff;
    background-color: #409eff;
    outline: none;
}

/* 菜单按钮激活状态 */
.menu-btn:active {
    color: #ffffff;
    border-color: #337ecc;
    background-color: #337ecc;
    outline: none;
}


/* 棋盘底部遮罩 */
#chessboard-bottom-mask {
    width: 584px;
    height: 803px;
    background-color: #000;
    position: absolute;
    transform: translate(123.5px, 37.5px);
    clip-path: polygon(0 25%,
            50% 0%,
            100% 25%,
            100% 75%,
            50% 100%,
            0% 75%);
    z-index: -2;
}

/* 棋盘上层遮罩 */
#chessboard-top-mask {
    width: 584px;
    height: 803px;
    background-color: transparent;
    position: absolute;
    transform: translate(123.5px, 37.5px);
    z-index: 1;
}

/* 棋子 */
.piece {
    position: absolute;
    background-color: transparent;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transform: scaleY(1);
}

.piece:not(.piece_white, .piece_black):hover {
    background-color: rgba(128, 128, 128, 0.494);
    transition: .3s;
}

/* 白色棋子 */
.piece_white {
    background-color: #fff;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.3), 0 -2px 4px 1px rgba(0, 0, 0, 0.3) inset
}

/* 棋子反光效果*/
.piece_white:not(#tip)::before {
    content: '';
    display: block;
    width: 100%;
    height: 50%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transform: translateZ(-1px);
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* 黑色棋子 */
.piece_black {
    background-color: #000;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.3), 0 -2px 4px 1px rgba(255, 255, 255, 0.3) inset;
}


/* 棋子反光效果*/
.piece_black:not(#tip)::before {
    content: '';
    display: block;
    width: 100%;
    height: 50%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    transform: translateZ(-1px);
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}



/* 左箭头三角形 */
.cell__left {
    height: 48px;
    background: #fff;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    transform: rotate(90deg);
    margin-left: -11px;
    margin-top: -10.5px
}

/* 获胜遮罩 */
.win-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    font-weight: bold;
}

/* 右箭头三角形 */
.cell__right {
    height: 48px;
    background: #fff;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    transform: rotate(-90deg);
    margin-left: -11px;
    margin-top: -10.5px;
}

/* 棋盘每一列 */
.column {
    display: flex;
    width: 41.5px;
    flex-direction: column;
    height: 800px;
}

/* 玩家id提示 */
#online-ID {
    visibility: hidden;
    border-radius: 5px;
    color: #409eff;
    position: fixed;
    right: 15px;
    top: 20px;
    width: 240px;
    height: 40px;
    font-size: 22px;
    text-align: center;
    line-height: 40px;
    text-align: center;
    background-color: #d9ecff;
    cursor: pointer;
}
